﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo00
{
    class People
    {
        public int idnum;
        public string name;
        public string bumen;
        public int Idnum
        {
            get { return this.idnum; }
            set { this.idnum = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Bumen
        {
            get { return this.bumen; }
            set { this.bumen = value; }
        }
        //无参
        public  People()
        {
            Idnum = 0215;
            Name = "黄子韬";
            Bumen = "软件部";        }
    }

    //有参

    public People( int idnum, string namem, string bume)
    {
        this.IdNum = idnum;
        this.Name = name;
        this.Bumen= bume ;
    }
}
    public void print()
    {
        Console.WriteLine("我的编号是{0},我的姓名是{1},我来自{2}", this.idnum, this.name, this.imagernation);
    }
}
